home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Loadstar 40
/
040.d81
/
print select
(
.txt
)
< prev
next >
Wrap
Commodore BASIC
|
2022-08-26
|
2KB
|
88 lines
3 gosub10000
5 b=198
6 bl$=" ":gosub 7:goto9
7 open15,8,15,"i0":close15:open2,8,2,"$":forx=0to156:get#2,a$:next
8 get#2,a$:si=val(a$):close2:return
9 poke53281,.:poke53280,5
10 print"[147] [204][207][193][196][211][212][193][210][160][200]ardcopy [211]etup "
15 print"[158] [215]hat selection below best describes"
16 print" your printer?"
20 print" 1[154]) [195]ommodore 1525 or compatible"
30 print" 2[154]) [195]ommodore 1520"
40 print" 3[154]) [207]ld [195]ommodore 1515"
42 print" 4[154]) [207]ther printer"
45 print" [209][154]) [209]uit"
50 print" [208]ress 1[154], 2[154], 3[154], or [209][154].":poke198,.
60 a=peek(203):ifa<>56anda<>59anda<>8anda<>62anda<>11then60
65 ifa=56thenpa=4:sa=7:c8%=-1:goto300
70 ifa=62thengosub60000:goto50
80 ifa=59thenpa=6:sa=0:goto300
90 ifa=8thenpa=4:sa=7:c8%=0:goto300
200 print"[207].[203].[154], please enter the correct data"
202 print"for your printer:"
203 forx=0to10:printbl$:next
204 print"[197]nter primary address --";:inputpa$:pa=val(pa$)
206 print:print:print"[154][197]nter secondary address --";:inputsa$:sa=val(sa$)
300 :
301 print"":forx=0to20:printbl$:next
302 print"[154][208]rimary address of"pa"[157][154]."
304 print"[211]econdary address of"sa"[157][154]."
305 :
310 print"[193]re these selections correct?"
312 print" [[217][154]/[206][154]] or [209] [154]to [209]uit"
315 pokeb,0:waitb,1:geta$
320 ifa$<>"y"anda$<>"n"anda$<>"q"then315
325 :
330 ifa$="q"then540
340 ifa$="n"then10
345 goto500
350 :
360 print"":forx=0to20:printbl$:next
370 print" [154][208]lease make sure side"ag"[154]of your"
375 print" [204][207][193][196][211][212][193][210] disk is in your drive."
380 print" [208]lease press a key when you are ready."
381 print" ([208]ress [209] [154]to [209]uit)"
382 pokeb,0:waitb,1:geta$:ifa$="q"then1000
400 gosub 7:ifag=sithen405
401 print"":forx=1to20:printbl$:next
402 print"[211]ide"ag"not found...":fordl=1to2000:next:goto360
405 gosub20000
410 print" [208]rint file is now on this side"
412 print" of the disk."
415 fordl=1to2000:next
416 return
450 :
500 ns=3:forag=1tons
510 gosub360
520 next ag
530 :
540 print"":forx=0to20:printbl$:next
542 print""
600 print"[208]lace [204][207][193][196][211][212][193][210] [211]ide [207]ne [154]in your drive"
610 print"and press any key to return to menu."
620 geta$:ifa$=""then620
700 open15,8,15,"r0:custom ls boot=custom ls boot":input#15,er:close15
710 ifer<>63then540
1000 load"custom ls boot",8
10000 cr$=chr$(13)
10005 open15,8,15
10010 open3,8,4,"setup"
10020 input#3,d$(1),d$(2),d$(3),d$(4),d$(5),d$(6),d$(7)
10030 close3
10040 close15
10050 pa=val(d$(4)):sa=val(d$(5))
10060 return
20000 close15:open15,8,15
20010 d$(4)=mid$(str$(pa),2)
20012 d$(5)=mid$(str$(sa),2)
20070 open3,8,4,"setup":cr$=chr$(13)
20080 print#15,"p"chr$(0)"";
20082 print#3,d$(1)cr$d$(2)cr$d$(3)cr$d$(4)cr$d$(5)cr$d$(6)cr$d$(7)cr$
20100 close3
20110 close15
20120 return
60000 print"[145] [154][193]re you sure you want to quit? ([217][154]/[206][154])":poke198,.
60010 a=peek(203):ifa<>25anda<>39then60010
60020 ifa=39thenprint"[145] [145]":return
60030 goto540